<?php echo $this->doctype() ?>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <base href="<?php echo $this->baseUrl(); ?>" />
        <?php echo $this->headMeta() ?>
        <?php echo $this->headTitle() ?>

        <?php echo $this->headLink() ?>
        <link REL="SHORTCUT ICON" HREF="/resources/admin/images/favicon.ico">

        <!--                       CSS                       -->

        <!-- Reset Stylesheet -->
        <link rel="stylesheet" href="/resources/admin/css/reset.css" type="text/css" media="screen" />

        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="/resources/admin/css/style.css" type="text/css" media="screen" />

        <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
        <link rel="stylesheet" href="/resources/admin/css/invalid.css" type="text/css" media="screen" />


        <!-- nosql-blog.css -->
        <link rel="stylesheet" href="/resources/admin/css/nosql-blog.css" type="text/css" media="screen" />

        <!-- Internet Explorer Fixes Stylesheet -->

        <!--[if lte IE 7]>
			<link rel="stylesheet" href="/resources/admin/css/ie.css" type="text/css" media="screen" />
		<![endif]-->

        <!--                       Javascripts                       -->
        <!-- jQuery -->
        <script type="text/javascript" src="/resources/admin/js/jquery-1.3.2.min.js"></script>

        <!-- jQuery Configuration -->
        <script type="text/javascript" src="/resources/admin/js/simpla.jquery.configuration.js"></script>

        <!-- Facebox jQuery Plugin -->
        <script type="text/javascript" src="/resources/admin/js/facebox.js"></script>

        <!-- jQuery WYSIWYG Plugin -->
        <script type="text/javascript" src="/resources/admin/js/jquery.wysiwyg.js"></script>

        <script type="text/javascript" src="/resources/admin/js/nosql-admin.js"></script>

        <!--[if IE]><script type="text/javascript" src="resources/scripts/jquery.bgiframe.js"></script><![endif]-->


        <!-- Internet Explorer .png-fix -->

        <!--[if IE 6]>
                <script type="text/javascript" src="resources/scripts/DD_belatedPNG_0.0.7a.js"></script>
                <script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->




    </head>
    <body <?php echo $this->bodyId; ?>>
        <?php
        if (isset($this->bodyId)) {
            echo $this->layout()->content;
        } else {
 ?>

            <div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->

                <!-- BEGIN SIDEBAR -->
<?php echo $this->partial('partials/sidebar.phtml', 'admin', array('sidebarMenu' => $this->sidebarMenu,'userObj' => $this->userObj)); ?>
            <!-- END SIDEBAR -->

            <div id="main-content"> <!-- Main Content Section with everything -->

<?php echo $this->layout()->content; ?>


                <div id="footer">
                    <small> <!-- Remove this notice or replace it with whatever you want -->
                        &#169; FOOTER NoSQL BLOG | <a href="/">Inicio</a>
                    </small>
                </div><!-- End #footer -->

            </div> <!-- End #main-content -->

        </div>


<?php } ?>
    </body>
</html>